//    Copyright (C) Kherty.  All rights reserved.
using System;
using OpenLS.Spreadsheet.Parsing;

namespace OpenLS.Spreadsheet.Expressions
{
    class UnqualifiedCellReferenceExpression: NotQualifiedExpression
    {
        private readonly CellReferenceToken _reference;

        public UnqualifiedCellReferenceExpression(CellReferenceToken reference)
        {
            _reference = reference;
        }

        public override Expression QualifiedExpression(RangeFactory factory)
        {
            return factory.GetCellReferenceExpression(_reference);
            //return new CellReferenceExpression(factory.GetCellReference(_reference), factory.Caller);
        }
    }
}